package org.xqyy.eval.service;

import org.xqyy.eval.model.Question;
import org.xqyy.eval.model.TQuestion;

import java.util.List;
import java.util.Map;

/**
 * Created by luoxiaoming on 16-12-24.
 */
public interface IQuestionService {

    public void add(Map<String, Object> params);

    public void modify(Map<String, Object> params);

    public void delete(Map<String, Object> params);

    public List<Map<String, Object>> load(Map<String, Object> params);

    public List<Map<String, Object>> getpaperId(String code);

    public List<Map<String, Object>> getgroupCode(String code);

    /**
     *
     * @param paperId 试卷Id
     * @return
     */
    public List<TQuestion> selectQuestionByPaperId(Integer paperId);

    /**
     *查询所有问题
     * @return
     */
    public List<TQuestion> selectAllQuestion();

    /**
     * 添加问题
     * @return
     */
    public Boolean addQuestion(TQuestion tQuestion);

    /**
     * 查询一个问题
     * @return
     */
    public TQuestion findQuestionById(TQuestion tQuestion);

    /**
     * 修改问题
     * @return
     */
    public Boolean updateQuestion(TQuestion tQuestion);
}
